import React from "react";

export const middleContent = {
    
    innitialValue:{
        ipAdress:'192.168.1.1',
        time:['2023-01-01','2023-02-02']
    },
    table:[],
    widget:{},
    widgetPie:[]
}

const middleReducer = (state, action) => {
    const { type, payload } = action
    if (type) {
        return {
            ...state,
            ...payload
        }
    }else{
        return state
    }
}
export default middleReducer